home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 8 / Revista CD Expert nº 08 CD1.iso / Utilitarios / Programacao / Bloodshed Dev-C++ 2.0 / _SETUP.1 / dll.c < prev    next >
C/C++ Source or Header  |  1997-12-30  |  365b  |  23 lines

  1. /*
  2.  * Source code of the functions inside our test DLL. Note that DllMain is
  3.  * not required (it will be provided by the stub in libmingw32.a).
  4.  */
  5.  
  6. #if 0
  7. #include <windows.h>
  8. #endif
  9.  
  10. int Add (int x, int y)
  11. {
  12.     printf ("In add!\nx = %d\ny = %d\n", x, y);
  13.     return (x + y);
  14. }
  15.  
  16.  
  17. int Sub (int x, int y)
  18. {
  19.     printf ("In sub!\nx = %d\ny = %d\n", x, y);
  20.     return (x - y);
  21. }
  22.  
  23.